home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / c / minigl.lha / MiniGL / Build_gcc / makefile
Encoding:
Makefile  |  2002-05-26  |  2.6 KB  |  110 lines

  1. #
  2. # $Id: makefile,v 1.5 2001/12/25 00:55:26 tfrieden Exp $
  3. #
  4. # $Date: 2001/12/25 00:55:26 $
  5. # $Revision: 1.5 $
  6. #
  7. # (C) 1999 by Hyperion
  8. # All rights reserved
  9. #
  10. # This file is part of the MiniGL library project
  11. # See the file Licence.txt for more details
  12. #
  13. #
  14.  
  15. VPATH = ../src/ ../demos
  16. INCLUDE = -I../include
  17. CFLAGS = $(INCLUDE) -m68060 -D__M68K__ $(DEBUG) $(ADDFLAG) -ffast-math -fomit-frame-pointer
  18. DEBUG = -DNDEBUG
  19. LIBNAME = ../lib/libmgl.a
  20.  
  21. DEMOS = GLTest varray rasonly warp bounce texsub mtex varray_new gears gears_stats driverinfo
  22.  
  23. CC = m68k-amigaos-gcc -O3 -g -DINLINE=__inline
  24.  
  25. AR = ar
  26. RANLIB = m68k-amigaos-ranlib
  27.  
  28. LIBOBJ = context.o vertexbuffer.o draw.o texture.o fog.o \
  29.     hclip.o init.o glu.o \
  30.     aclip.o vertexelements.o vertexarray.o \
  31.     others.o matrix.o
  32.  
  33.  
  34. DEBUGLIB = -ldebug
  35.  
  36. EXEOBJ = GLTest.o
  37.  
  38. all: $(LIBNAME) $(DEMOS)
  39.  
  40. install:
  41.         cp ../include/mgl/*.h /usr/os-include/mgl
  42.         cp ../lib/libmgl.a /usr/m68k-amigaos/lib
  43.  
  44. clean:
  45.         -rm *.o ../lib/libmgl.a
  46.  
  47. lib: $(LIBNAME)
  48.         @echo "Done"
  49.  
  50.  
  51. GLTest: GLTest.o $(LIBNAME)
  52.         $(CC) -o GLTest $(INCLUDE) GLTest.o -L../lib -lmgl $(DEBUGLIB)
  53.  
  54. gears: gears.o $(LIBNAME)
  55.         $(CC) -o gears $(INCLUDE) gears.o -L../lib -lmgl $(DEBUGLIB)
  56. #        /c/copy gears ../gears
  57.  
  58. gears_stats: gears_stats.o $(LIBNAME)
  59.         $(CC) -o gears_stats $(INCLUDE) gears_stats.o -L../lib -lmgl $(DEBUGLIB)
  60. #        /c/copy gears_stats ../gears_stats
  61.  
  62. driverinfo: driverinfo.o $(LIBNAME)
  63.         $(CC) -o driverinfo $(INCLUDE) driverinfo.o -L../lib -lmgl $(DEBUGLIB)
  64. #        /c/copy driverinfo ../driverinfo
  65.  
  66. varray_new: varray_new.o $(LIBNAME)
  67.         $(CC) -o varray_new $(INCLUDE) varray_new.o -L../lib -lmgl $(DEBUGLIB)
  68. #        /c/copy varray_new ../varray_new
  69.  
  70. mtex: mtex.o $(LIBNAME)
  71.         $(CC) -o mtex $(INCLUDE) mtex.o -L../lib -lmgl $(DEBUGLIB)
  72. #        /c/copy mtex ../mtex
  73.  
  74. bounce: bounce.o $(LIBNAME)
  75.         $(CC) -o bounce $(INCLUDE) bounce.o -L../lib -lmgl $(DEBUGLIB)
  76. #        /c/copy bounce ../bounce
  77.  
  78. smtest: smtest.o $(LIBNAME)
  79.         $(CC) -o smtest $(INCLUDE) smtest.o -L../lib -lmgl $(DEBUGLIB)
  80. #        /c/copy smtest ../smtest
  81.  
  82. texsub: texsub.o $(LIBNAME)
  83.         $(CC) -o texsub $(INCLUDE) texsub.o -L../lib -lmgl $(DEBUGLIB)
  84. #        /c/copy texsub ../texsub
  85.  
  86. ../gears: gears.o $(LIBNAME)
  87.         $(CC) -o gears $(INCLUDE) gears.o -L../lib -lmgl $(DEBUGLIB)
  88. #        /c/copy gears ../gears
  89.  
  90. warp: warp.o $(LIBNAME)
  91.         $(CC) -o warp $(INCLUDE) warp.o -L../lib -lmgl $(DEBUGLIB)
  92. #        /c/copy warp ../warp
  93.  
  94. rasonly: rasonly.o $(LIBNAME)
  95.         $(CC) -o rasonly $(INCLUDE) rasonly.o -L../lib -lmgl $(DEBUGLIB)
  96. #        /c/copy rasonly ../rasonly
  97.  
  98. varray: varray.o $(LIBNAME)
  99.         $(CC) -o varray $(INCLUDE) varray.o -L../lib -lmgl $(DEBUGLIB)
  100. #        /c/copy varray ../varray
  101.  
  102. $(LIBNAME):  $(LIBOBJ)
  103.         $(AR) rcs $(LIBNAME) $(LIBOBJ)
  104.  
  105.  
  106.  
  107. depend:
  108.         makedepend $(INCLUDE) src/*.c
  109.  
  110.